package com.xuecheng.content.contrller;



import com.xuecheng.content.model.dto.CourseCategoryTreeDto;
import com.xuecheng.content.service.iml.CourseCategoryServiceIml;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 数据字典 前端控制器
 */
@RestController
@RequiredArgsConstructor
@Slf4j
@Api(value = "数据字典 前端控制器",tags = "数据字典 前端控制器")
public class CourseCategoryController {
    public final CourseCategoryServiceIml courseCategoryServiceIml;
    @GetMapping("/course-category/tree-nodes")
    public List<CourseCategoryTreeDto> queryTreeNodes(){
        return courseCategoryServiceIml.queryTreeNodes("1");
    }
}
